package cn.sofwin.day0204.homework;

import java.util.Random;
import java.util.Scanner;

public class H1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("输入一个字符串（长度要大于6个字符）：");
        String str = sc.next();

        StringBuilder verify = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 6; i++) {
            verify.append(str.charAt(random.nextInt(str.length())));
        }

        System.out.println(verify);
    }
}
